
<?php
	//print "session ID = ". $_SESSION['count'] . "<BR>";
   if (!isset($_SESSION['sessData']["loggedin"]) || $_SESSION['sessData']["loggedin"] == 0)
   {
      // output login panel
?>

    <!-- 25 percent width column, aligned to the left -->
    <div class="width25 floatLeft leftColumn">


      <ul class="sideMenu">
      <h1>Login</h1>
        <li class="here">
          <form action=play.php method=POST>
          <ul>
            <li>Username: <input name="username" type="textfield"></li><br>
            <li>Password: <input name="password" type="password"></li><br><br>            
            <li>
              <center>
                <input type="submit" name="login" text="Login" value="Login"></li><br>
              </center>
          </ul>
        </li>
      </ul>

    </div>

<?php

   }
   else
   {
      print "Logged in as <b>" . $_SESSION['sessData']["username"]; "</b>\n";

   }

?>
